import {defHttp} from '/@/utils/http/axios';
import { useMessage } from "/@/hooks/web/useMessage";

const { createConfirm } = useMessage();

enum Api {
  scoreTop5 = '/dormitory/dashboard/scoreTop5',
  scoreLowTop5 = '/dormitory/dashboard/scoreLowTop5',
  accessRecord = '/dormitory/dashboard/accessRecord',
  accessTimeStatistics = '/dormitory/dashboard/accessTimeStatistics',
  notReturnList = '/dormitory/dashboard/notReturnList',
  accessExceptionStatistics = '/dormitory/dashboard/accessExceptionStatistics',
}
/**
 * 列表接口
 * @param params
 */
export const scoreTop5Api = (params) =>{
 return defHttp.get({url: Api.scoreTop5, params});
}

export const scoreLowTop5Api = (params) =>{
 return defHttp.get({url: Api.scoreLowTop5, params});
}

export const accessRecordApi = (params) =>{
 return defHttp.get({url: Api.accessRecord, params});
}

export const accessTimeStatisticsApi = (params) =>{
 return defHttp.get({url: Api.accessTimeStatistics, params});
}

export const notReturnListApi = (params) =>{
 return defHttp.get({url: Api.notReturnList, params});
}

export const accessExceptionStatistics = (params) =>{
 return defHttp.get({url: Api.accessExceptionStatistics, params});
}

